package com.jacen.fzxs.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jacen.fzxs.dao.IBaseDao;
import com.jacen.fzxs.dao.IDictItemDao;
import com.jacen.fzxs.entity.DictItemEntity;
import com.jacen.fzxs.service.IDictItemService;

/**
 * 字典项Service
 * @author Jacen
 *
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class DictItemService extends BaseService<DictItemEntity> implements IDictItemService {
	
	@Resource
	private IDictItemDao itemDao;
	
	@Override
	public IBaseDao<DictItemEntity> getDao() {
		// TODO Auto-generated method stub
		return itemDao;
	}

	@Transactional(readOnly = true)
	public List<DictItemEntity> getList(Map<String, String> params) {
		// TODO Auto-generated method stub
		return itemDao.getList(params);
	}

	@Override
	public DictItemEntity getItemByGroupAndName(String groupName, Integer trade) {
		// TODO Auto-generated method stub
		return itemDao.getItemByGroupAndName(groupName,trade);
	}


}
